Use atom Filters. Check this item if you wish to filter out certain atom combinations. This will allow you to prevent unwanted bonds. The lists on the left are used to specify these combinations.